package pers.cz.postgirl.core.common;

import pers.cz.postgirl.core.Spy;

import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * @program: postgirl-client
 * @description: 参数过滤器
 * @author: Cheng Zhi
 * @create: 2023-07-27 21:18
 **/
public class ParamFilter {

    /**
     * 定义无需序列化的参数
     */
    private static String[] noRecordParam = {
            "java.sql.Connection",
            "org.apache.ibatis.session.SqlSession"
    };

    private static List<String> noRecordParamList = Arrays.asList(noRecordParam);

    /**
     * 判断是否需要过滤参数
     * @param paramType
     * @return
     */
    public static boolean isNeedfilterParam(String paramType) {
        return noRecordParamList.contains(paramType);
    }

}
